package com.team24.hotel.service.impl;

import com.team24.hotel.domain.Country;
import com.team24.hotel.mapper.CountryMapper;
import com.team24.hotel.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountryServiceImpl implements CountryService {

    @Autowired
    private CountryMapper countryMapper;

    @Override
    public List<Country> findAll() {
        return countryMapper.selectAll();
    }

    @Override
    public Country findByPrimaryKey(Integer countryId) {
        return countryMapper.selectByPrimaryKey(countryId);
    }
}
